<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/restrito/layout/template.xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core">
    
    <ui:define name="content">
        
    
            
        
        
            <p>
                <ui:insert name="content">
            
                </ui:insert>
            </p>    
        
            <h:form>
            
                <rich:panel>
                    
                    
                        <h:outputText value="Digite a Mensagem"/>
                        <h:inputText value="#{mensagemController.mensagem.texto}"/> 
                        <br/>
                        <h:outputText value="Status da Mensagem"/>
                        
                        <h:selectOneMenu value="#{mensagemController.mensagem.status}">
                                <f:selectItem itemValue="Recebida" itemLabel="Recebida"/>
                                <f:selectItem itemValue="Enviada" itemLabel="Enviada"/>
                        </h:selectOneMenu>
                    
                        
                        <br/>
                    
                        <h:commandButton action="#{mensagemController.inserirMensagem()}" value="Enviar"/>
                        <br/>
                    
                </rich:panel>
                
               
                
                
                
            </h:form>    
            
                    <br/>
                    <h:messages errorStyle="color: red" infoStyle="color: black" layout="table" style="font-size: 13px"/>
        
    
        
    </ui:define>
    
</ui:composition>
